package com.ls.fw.search.solrj.form.collection;

import org.hibernate.validator.constraints.NotBlank;

import com.ls.fw.search.solrj.bean.Property;
import com.ls.fw.search.solrj.bean.Split;

/**
 * split a shard into two new shards
 * 
 * @author ls
 *
 */
public class SplitShardForm {

	@NotBlank
	private String action = "SPLITSHARD";
	@NotBlank
	private String collection;
	private String shard;
	private Property property;
	private String async;
	private Split split;
	private String ranges;

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getCollection() {
		return collection;
	}

	public void setCollection(String collection) {
		this.collection = collection;
	}

	public String getShard() {
		return shard;
	}

	public void setShard(String shard) {
		this.shard = shard;
	}

	public Property getProperty() {
		return property;
	}

	public void setProperty(Property property) {
		this.property = property;
	}

	public String getAsync() {
		return async;
	}

	public void setAsync(String async) {
		this.async = async;
	}

	public Split getSplit() {
		return split;
	}

	public void setSplit(Split split) {
		this.split = split;
	}

	public String getRanges() {
		return ranges;
	}

	public void setRanges(String ranges) {
		this.ranges = ranges;
	}
}
